package com.fowo.api.controller.purchase;

import com.fowo.api.common.model.R;
import com.fowo.api.controller.purchase.dto.DevelopmentTaskItemDTO;
import com.fowo.api.mapper.WarehouseBinDMapper;
import com.fowo.api.model.sourcing.manage.SourcingManageItemVo;
import com.fowo.api.model.sourcing.manage.SourcingManageSearchParamPo;
import com.fowo.api.service.SourcingManageService;
import com.fowo.api.user.model.JwtUserInfo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Tag(name = "寻源管理")
@RequestMapping("/api/sourcing-manage-D")
@RestController
public class SourcingManageDController {
    @Resource
    private SourcingManageService service;
    @Resource
    private WarehouseBinDMapper warehouseBinDMapper;

    @Operation(summary = "查询结果")
    @GetMapping("getListDevelopmentTaskItemDTO")
    public R<List<DevelopmentTaskItemDTO>> DevelopmentTaskItem() {
        JwtUserInfo jwtUserInfo = JwtUserInfo.fromHeader();
        List<DevelopmentTaskItemDTO> developmentTaskItemDTOS = warehouseBinDMapper.DevelopmentTaskItem(jwtUserInfo.getUserId());
        return R.data(developmentTaskItemDTOS);
    }





}
